<?php
namespace Core\Datastorage;

/**
* LambdaExpression class definition. This class manage all lambda expression use to request expression.
*
* @author Didelot Guillaume
* @version 1.0.0
* @copyright Copyright (c) 2015, Didelot Guillaume
*/
class LambdaExpression 
{
	/**
	* @property string $LeftPart The left expression part
	*/
	public $LeftPart;
	
	/**
	* @property string $Operator The operator expression
	*/
	public $Operator;
	
	/**
	* @property string $LeftPart The right expression part
	*/
	public $RightPart;
	
	/**
	* Default constructor
	*/
	public function __construct($leftPart, $operator, $rightPart)
	{
		$this->LeftPart = $leftPart;
		$this->Operator = $operator;
		$this->RightPart = $rightPart;
	}
	
	/**
	* The class string expression
	*/
	public function __toString()
    {
        return sprintf('%s %s "%s"', $this->LeftPart, $this->Operator, $this->RightPart);
    }
}
?> 